<?php


namespace app\dao;


use app\dao\query\RolesQueryDao;
use app\dao\query\RouteRolesQueryDao;
use app\dao\query\RoutesQueryDao;
use app\dao\query\UserQueryDao;
use app\model\Roles;
use app\model\RouteRoles;
use app\model\User;

class RouteRolesDao extends BaseDao
{
    private $_customQuery;

    public function __construct()
    {
        $this->_customQuery = new RouteRolesQueryDao();
    }

    protected function setModel()
    {
        return RouteRoles::class;
    }

    public function customQuery()
    {
        return $this->_customQuery;
    }

    public function delete($id){
        $this->getModel()->destroy($id);
    }
}